import 'package:flutter/material.dart';
import 'package:tiktok_clone/widgets/home/controls/onscreen_controls.dart';
import 'package:tiktok_clone/widgets/home/home_video_renderer.dart';
import 'package:tiktok_clone/widgets/home/home_header.dart';
import 'package:tiktok_clone/bottom_nav_bar.dart';

class FollowingScreen extends StatelessWidget {
  final double offsetX;
  const FollowingScreen({Key key, this.offsetX}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PageView.builder(
        scrollDirection: Axis.vertical,
        itemBuilder: (context, position) {
          return Container(
            color: Colors.black,
            child: Stack(
              children: <Widget>[
                AppVideoPlayer(),
                onScreenControls(),
                BottomNavigation(),
                homeHeader(Colors.white, Colors.grey),
              ],
            ),
          );
        },
        itemCount: 10);
  }

  Widget buildFollowingPage(double screenWidth) {
    return Transform.scale(
      child: Container(
        child: Stack(
        children: <Widget>[
          AppVideoPlayer(),
          onScreenControls(),
          BottomNavigation(),
          homeHeader(Colors.white, Colors.grey),
        ],
        ),
      ),
    );
  }
}
